<template>
	<view class="page" :style="themeColor">
		<view class="flex align-stretch benben-position-layout flex agreements_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
			<view class='flex align-center justify-between flex-sub agreements_fd0_0'>
				<view class='flex align-center agreements_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
					data-url="1">
					<text class='fu-iconfont2  agreements_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex align-center'>
					<text class='agreements_fd0_0_c1_c0'>消息详情</text>
				</view>
				<view class='flex align-center agreements_fd0_0_c0'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#F35D2A"></u-loading>
			<view>加载中</view>
		</view>

		<view class="ben_fu-jyf-parser_1" :style="{minHeight: (vheight - (88+StatusBarRpx))+'rpx'}" v-else>
			<view class="title_1">{{dataMessage.title}}</view>
			<view class="date">{{dataMessage.create_time}}</view>
			<u-parse :html="dataMessage.content"></u-parse>
		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {

				"dataMessage": {
					"aid": "",
					"name": "",
					"thumb_img": "",
					"content": "",
					"introduce": ""
				},
				"id": "",
				"isShow": true,
				"vheight": 0,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options;
			if (id !== undefined) this.id = id;
			this.getData();
			let _this = this;
			uni.getSystemInfo({
				success(res) {
					_this.vheight = res.windowHeight / (uni.upx2px(10) / 10);
				}
			});
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//系统文章--获取系统单页内容
			getData() {
				this.$api.post(global.API_VERSION + '6553178fc636d', {
					msg_id: this.id
				}).then(res => {
					this.isShow = false;
					if (res.data.code == 1) {
						this.dataMessage = res.data.data;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.title_1 {
		width: 100%;
		font-size: 34rpx;
		font-weight: 500;
	}

	.date {
		font-size: 24rpx;
		color: #999;
		margin: 16rpx 0 24rpx;
	}

	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background-size: 100% auto;
		background-color: #fff;
	}

	.agreements_flex_0 {
		border-bottom: 1px solid #eee;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto;
		background-color: #fff;
	}

	.agreements_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor0);
	}

	.agreements_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.agreements_fd0_0_c0 {
		width: 180rpx;
	}

	.agreements_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.ben_fu-jyf-parser_1 {
		background-color: #fff;
		padding-left: 32rpx;
		padding-right: 32rpx;
		padding-top: 32rpx;
		padding-bottom: 32rpx;
		border-radius: 16rpx 16rpx 0 0;
	}
</style>